<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置轮廓的颜色</title>
</head>

<body>


    <style>
        p.ex1 {
            border: 2px solid black;
            outline-style: solid;
            outline-color: red;
        }

        p.ex2 {
            border: 2px solid black;
            outline-style: dotted;
            outline-color: blue;
        }

        p.ex3 {
            border: 2px solid black;
            outline-style: outset;
            outline-color: grey;
        }
    </style>

    <h1>outline-color 属性</h1>
    <p>outline-color 属性用于设置轮廓的颜色。</p>

    <p class="ex1">红色的实线轮廓。</p>
    <p class="ex2">蓝色的点状轮廓。</p>
    <p class="ex3">灰色的实线轮廓。</p>
</body>

</html>